﻿using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Core.Foundation.Standards;

namespace Core.Foundation.Layouts.Core.Foundation
{
    /// <summary>
    /// Test Page
    /// </summary>
    public partial class TestPage : LayoutsPageBase
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void GenerateError_OnClick(object sender, EventArgs e)
        {
            Logging.LogError(new Exception(this.ErrorTextBox.Text), FoundationConstants.standardsLog);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void GenerateTrace_OnClick(object sender, EventArgs e)
        {
            Logging.LogToULS(this.TraceTextBox.Text, FoundationConstants.standardsLog);
        }
    }
}
